-- GENERATED SPELL FOR [Dragonflayer Ambusher] --


function spell0_24779(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38557,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24779', 1500, 1)
end

function Sorts_24779(pUnit, Event)
local choix_sorts_24779 = math.random(0, 0)
if choix_sorts_24779 == 0 then
pUnit:RegisterEvent('spell0_24779', 1, 1)
end
end

function mob24779_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24779', math.random(1500, 3000), 1)
end

function mob24779_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24779_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24779_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24779, 1, 'mob24779_Action')
RegisterUnitEvent(24779, 2, 'mob24779_Leave')
RegisterUnitEvent(24779, 3, 'mob24779_Kill')
RegisterUnitEvent(24779, 4, 'mob24779_Die')
